#include "stdafx.h"
#include "ReactorTypeDef.h"
#include "InstanceTouch.h"

DECL_INSTANCE_TOUCH(ETouch_ReactorTypeDef);

struct  ReactorTypeDefReflectionRegister
{
	ReactorTypeDefReflectionRegister()
	{
		REGISTER_REFLECTION_MEMBER(ReactorTypeDef,m_iID,INVALID_ID).Editor_SetAsPrimaryKey();
		REGISTER_REFLECTION_MEMBER(ReactorTypeDef,m_sDisplayName,std::string("DefaultName")).Editor_SetAsDisplayName();
		REGISTER_REFLECTION_MEMBER(ReactorTypeDef,m_vCategorys,std::vector<int32>()).Editor_SetAsForeignKeySet(eDefGroup_Default,eDefaultDef_ReactorCategory); 
		REGISTER_REFLECTION_MEMBER(ReactorTypeDef,m_sClientIcon,std::string("DefaultIcon")).Editor_SetAsRaw();

		GlobalClassManager::Instance().RegisterClass(ReactorTypeDef::s_GetReflection(),eDefaultDef_ReactorTypes);
		GlobalDefManager::Instance().RegisterDefManger(&ReactorTypeDefManager::Instance());
	}
}_____reactortypedefreflectionregister;